/**
* 
*  Processeur CT11MPCore
* see <a href="{@docRoot}/Documentation/processor.html"> for more information</a>
*  Copyright (c) 2009 Ecole Centrale de Nantes IRCCyN
* @author: Urunuela Richard
* @version 3.2
*/
package storm.Processors;

/**
 * 
 * @author richard
 *
 */
public class CT11MPCore extends Processor {
	double power = 1;
	/**
	 * puissance max pour task max consommation
	 */
	double sleep_power = 0.2;
	/**
	 * 
	 */
	public CT11MPCore(){
		
	}
	/**
	 * 
	 */
	public double getPower(){
	 if (this.isRunning() ) {
		 
		 return (power * this.getrunning().powerDeviation /100);
	 }
	 else return sleep_power;
	}
	
	
}
